package com.bookmarket.entity;

/**
 * @author Chen Zhaoguang
 * @date 2017/12/26 11:14
 */

import java.io.Serializable;

/**
 * 用户
 */
public class Custom implements Serializable {
    private int id;
    private String name;//用户名
    private String pass;//密码
    private String realName;//真是姓名
    private int sex;//性别
    private String phone;//电话
    private String email;//电子邮箱
    private Address address;//收货地址外键
    private Order order;//订单外键
    private Discount discount;//优惠券外键

    public Custom() {
    }

    public Custom(int id, String realName, String phone, String email) {
        this.id = id;
        this.realName = realName;
        this.phone = phone;
        this.email = email;
    }

    public Custom(int id, String name, String pass, String realName, int sex, String phone, String email, Address address, Order order, Discount discount) {
        this.id = id;
        this.name = name;
        this.pass = pass;
        this.realName = realName;
        this.sex = sex;
        this.phone = phone;
        this.email = email;
        this.address = address;
        this.order = order;
        this.discount = discount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public Discount getDiscount() {
        return discount;
    }

    public void setDiscount(Discount discount) {
        this.discount = discount;
    }
}
